﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace ClearTypeSwitch
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();           
            Application.SetCompatibleTextRenderingDefault(false);

            Switcher s = new Switcher();
            s.Switch();

            if(args.Length == 1 && args[0].Trim().ToLower() == "silent")
                return;

            string mode = string.Empty;
            if(s.Current == Switcher.FE.FE_FONTSMOOTHINGORIENTATIONBGR)
                mode = "BGR";
            else
                mode = "RGB";

            MessageBox.Show("ClearType orientation: " + mode, "ClearTypeSwitch", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }
    }
}
